package com.wang.xh.category.controller;

import com.wang.xh.api.client.CategoryFeignClient;
import com.wang.xh.api.domain.category.Category;
import com.wang.xh.common.util.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wjh
 * @create 2024-09-09 18:43
 */
@Tag(name = "分类的远程调用控制层")
@RestController
@RequestMapping("/category")
public class CategoryFeignController {
    @Resource
    private CategoryFeignClient categoryFeignClient;
    
    @RequestMapping("/mutli")
    public R<List<Category>> getAllCategory() {
        return categoryFeignClient.getAllCategory();
    }
}
